package interfaces;

import internal.Produto;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.sql.SQLException;
import java.util.ArrayList;


public interface iServer extends Remote{
	/*
	 * Logins Functions
	 */
	ArrayList<Produto> connect ( ) throws RemoteException, SQLException, InterruptedException;
	
	void insertProduto(Produto p) throws RemoteException, SQLException, InterruptedException;
	void deleteProduto(Produto p) throws RemoteException, SQLException, InterruptedException;
	void updateProduto(Produto p) throws RemoteException, SQLException, InterruptedException;
	String getService() throws RemoteException;
	void setService(String service) throws RemoteException;
	void readUp() throws RemoteException, InterruptedException;;
	void readDown() throws RemoteException, InterruptedException;
	void writeUp() throws RemoteException, InterruptedException;;
	void writeDown() throws RemoteException, InterruptedException;;
	
}
